import React, { Component } from 'react';
import { Text, View } from 'react-native';

export default class Welcome extends Component {
  componentDidMount() {
    const { navigation } = this.props;
    setTimeout(() => {
      navigation.navigate('Login');
    }, 2000);
  }
  render() {
    const { navigation } = this.props;
    console.log('引导页', navigation);

    return (
      <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center', backgroundColor: '#ecf0f1' }}>
        <Text> Welcome 2秒后跳转首页</Text>
      </View>
    );
  }
}
